<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title><g:layoutTitle default="Grails"/></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon">
		<link rel="apple-touch-icon" href="${resource(dir: 'images', file: 'apple-touch-icon.png')}">
		<link rel="apple-touch-icon" sizes="114x114" href="${resource(dir: 'images', file: 'apple-touch-icon-retina.png')}">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}" type="text/css">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'mobile.css')}" type="text/css">
		
		<style type="text/css" media="screen">
			#status {
				background-color: #eee;
				border: .2em solid #fff;
				margin: 2em 2em 1em;
				padding: 1em;
				width: 12em;
				float: right;
				-moz-box-shadow: 0px 0px 1.25em #ccc;
				-webkit-box-shadow: 0px 0px 1.25em #ccc;
				box-shadow: 0px 0px 1.25em #ccc;
				-moz-border-radius: 0.6em;
				-webkit-border-radius: 0.6em;
				border-radius: 0.6em;
			}
			</style>
		
		<g:layoutHead/>
        <r:layoutResources />
	</head>
	<body>
	<div id="grailsLogo" role="banner">
		<table>
			<tr><td><a href="http://localhost:8080/books4africa/"><img src="${resource(dir: 'images', file: 'splash1.jpg')}" alt="Grails"/></a></td>
			<td>
			<div id="status">
			<sec:ifNotLoggedIn>	
			<br />
			<g:link controller= "teacher" action= "create">Sign up as a Teacher </g:link> <br />
			<g:link controller= "donor" action= "create">Sign up as a Donor </g:link> <br />
			<g:link controller= "login" action= "auth">Login</g:link>
		</sec:ifNotLoggedIn>
		<sec:ifLoggedIn>
		<br />
			<g:link controller= "profile" action= "profileView">View My Profile</g:link> <br />
			<g:link controller= "logout">Logout <sec:username/></g:link>
		</sec:ifLoggedIn>
			</div></td></tr>
			
		</table>
	
	
		 </div>
		<g:layoutBody/>
		<div class="footer" role="contentinfo"></div>
		<div id="spinner" class="spinner" style="display:none;"><g:message code="spinner.alt" default="Loading&hellip;"/></div>
		<g:javascript library="application"/>
        <r:layoutResources />
	</body>
</html>